extends "../cTDM/cTDM.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "术士"
	lv = 2
	attCoe.atkRan = 3
	attCoe.atk = 23 / 8.5 * 2 / 2
	attCoe.maxHp = 570 / 112.5 / 2
	addCdSkill("ss",5)
	addSkillTxt("奥术飞弹·火：奥术飞弹附加火属性，50%附加1层<烧灼>，10%附加4层<灼烧>")
	addSkillTxt("火旗：召唤火旗对当前敌人每秒造成(8*(lv-1)+物攻)点魔法伤害，持续2秒[cd:5秒]")
	
func _castCdSkill(id):
	._castCdSkill(id)
	if id == "ss" && aiCha != null:
		cst("火旗","000000",position)
		aiCha.addBuff(BF1.new(1,self))
		
class BF1:
	extends Buff
	var cha
	var dmg 
	func _init(lv,cha):
		attInit()
		life = lv * 2
		id = "b_hq"
		self.cha = cha
		self.dmg = cha.att.atk + 8 * (cha.lv - 1)
	func _upS():
		if cha != null:
			cha.hurtChara(masCha,dmg,Chara.HurtType.MGI,Chara.AtkType.EFF)
		else:
			masCha.hurtChara(masCha,dmg,Chara.HurtType.MGI,Chara.AtkType.EFF)